<?php

/**
 * Description of PersonPersonClass
 *
 * @author adhamhelal
 */
class OrgAddressPanel extends Qpanel {
	protected $mctAddress;

        protected $lstCountry;
        protected $lstGovernate;
        protected $lstCity;
        protected $lstArea;
        protected $txtAddress;
        

        protected $strTemplate;

        public function __construct($objParentObject, $mctAddress, $strControlId = null) {
                // Call the Parent
                try {
                        parent::__construct($objParentObject, $strControlId);
                } catch (QCallerException $objExc) {
                        $objExc->IncrementOffset();
                        throw $objExc;
                }

                $this->strTemplate = __DOCROOT__.__PERSON__ .  '/tpl/qpanel.tpl.php';
                $this->mctAddress = $mctAddress;
                // @TODO@ Enable country
                //$this->lstCountry = $this->mctAddress->lstCountry_Create();
                //$this->lstCountry->SetParentControl($this);

                $this->lstGovernate = $this->mctAddress->lstGovernate_Create();
                $this->lstGovernate->SetParentControl($this);

                $this->lstCity = $this->mctAddress->lstCity_Create();
                $this->lstCity->SetParentControl($this);

                $this->lstArea = $this->mctAddress->lstArea_Create();
                $this->lstArea->SetParentControl($this);

                $this->txtAddress = $this->mctAddress->txtAddress_Create();
                $this->txtAddress->SetParentControl($this);

    }

    public function Validate() {
        $blnToReturn = true;


        return $blnToReturn;
    }




}
?>

